Syncing Content
rsync -avur --chown=docker:docker /path/to_local_location/ user@remote.adress.org:/path/to_remote_location/
Mind the Trailing Slash (/) in rsync Paths
When using rsync, the presence or absence of a trailing slash (/) on the source path changes how files are copied:
✅ With a trailing slash (/path/to/local_dir/):
→ rsync copies the contents of the directory into the destination.
(This is what you usually want.)
⚠️ Without a trailing slash (/path/to/local_dir):
→ rsync copies the entire folder itself (as a subdirectory) into the destination.
(This can accidentally create an extra nested folder.)